/*
 * @Author: windys
 * @Description: 
 * @Date: 2022-03-09 16:13:20
 */
import { computed } from "vue";
import { formatDateTime } from './index'

export default function () {
    const filterTime = computed(() => {
        return function (time) {
            return formatDateTime(time)
        }
    })


    const filterQueStatus = computed(() => {
        // 是否已回答 0 未回答 1已回答 2已拒绝 3已超时 4已下架
        return function (v) {
            let arr = ['未回答', '已回答', '已拒绝', '已超时', '已下架']
            return arr[v]
        }
    })


   
    return {
        filterTime,
        filterQueStatus,
    }
}